package com.mapper;

import com.entity.School;
import org.apache.ibatis.annotations.Param;

import java.util.List;


// 评论 Mapper 接口
public interface SchoolMapper {
    /**插入学校*/
    Integer insertSchool(School school);
    /**学校分页*/
    List<School> querySchools(@Param("page") Integer page, @Param("count") Integer count, @Param("schoolName") String schoolName);
    /**查询学校*/
    List<School> lookSchool(School school);
    /**查询所有学校*/
    List<School> getSchoolList();
    /**删除学校*/
    Integer deleteSchool(Integer id);
    /**修改学校*/
    Integer changeSchool(School school);
    /**统计学校总数*/
    Integer queryAllSchoolCount(String schoolName);
}
